package com.tg.app.activity.device.add;

import android.os.Bundle;
import android.view.Window;

import androidx.annotation.Nullable;

import com.tg.app.R;
import com.base.BaseActivity;
import com.tg.app.helper.ActivityHelper;

public class DisScanDeviceActivity extends BaseActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);//remove title bar  即隐藏标题栏
        setContentView(R.layout.activity_ap_dis_scan);
        hideActionBar();
        initView();
    }

    @Override
    public boolean shouldSetStatusBarColor() {
        return true;
    }

    public void initView() {
        modifyToolBar(null, false);
        setClickBack(null);
        findViewById(R.id.device_ap_add_back_to_home).setOnClickListener(v -> ActivityHelper.gotoDeviceListPage(DisScanDeviceActivity.this));

        findViewById(R.id.device_ap_add_again).setOnClickListener(v -> ActivityHelper.goToSearchWifi(DisScanDeviceActivity.this));
    }

}
